import request from '@/utils/request'

// 查询项目-仓库列表
export function listWarehouse(query) {
  return request({
    url: '/industry/warehouse/list',
    method: 'get',
    params: query
  })
}

// 查询项目-仓库详细
export function getWarehouse(id) {
  return request({
    url: '/industry/warehouse/' + id,
    method: 'get'
  })
}

// 新增项目-仓库
export function addWarehouse(data) {
  return request({
    url: '/industry/warehouse',
    method: 'post',
    data: data
  })
}

// 修改项目-仓库
export function updateWarehouse(data) {
  return request({
    url: '/industry/warehouse',
    method: 'put',
    data: data
  })
}

// 删除项目-仓库
export function delWarehouse(id) {
  return request({
    url: '/industry/warehouse/' + id,
    method: 'delete'
  })
}

//导出免费服务委托书
export function getEntrust(id){
  return request({
    url: '/industry/warehouse/entrust?id=' + id,
    method: 'get',
  })
}
